RemoveFrame
The RemoveFrame method removes the specified frame from this draft.
void RemoveFrame (in ODFrame frame);
frame
- A reference to the frame object to be removed.
DISCUSSION
OpenDoc calls this method internally; parts, the document shell, and container applications do not call this method.When this method is called, the reference count of the specified frame must be 1, and this draft's current permissions must provide write access.
If this method executes successfully, it marks this draft as dirty. The specified frame is no longer a valid object, and this draft no longer contains a frame object with the corresponding ID.
EXCEPTIONS
kODErrRefCountGreaterThanZero
- After the specified frame was released, its reference count was greater than 0.
kODErrRefCountNotEqualOne
- The reference count of the specified frame's storage unit is not 1.
SEE ALSO
TheODDraft::CreateFrame
method (page 164).
TheODDraft::AcquireFrame
method (page 153).
TheODFrame::Remove
method (page 330).
TheODFrame
class (page 294).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help